﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Schedule.aspx.cs" Inherits="Schedule" %>

<%@ Register Assembly="DevExpress.Web.v11.1, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.1, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.1, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxSplitter" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v11.1, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v11.1, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript" language="javascript">
        function OpenPopWindows(url, headermame, n) {
            switch (n) {
                case 1:
                    popGuest.SetHeaderText(headermame);
                    popGuest.SetContentUrl(url);
                    popGuest.Show();
                    break
                case 2:
                    popGuide.SetHeaderText(headermame);
                    popGuide.SetContentUrl(url);
                    popGuide.Show();
                    break
                case 3:
                    popNotify.SetHeaderText(headermame);
                    popNotify.SetContentUrl(url);
                    popNotify.Show();
                    break;
                default:
            }

        }
//        function openwindow(url, name, iWidth, iHeight) {
//            var url; //转向网页的地址;
//            var name; //网页名称，可为空;
//            var iWidth; //弹出窗口的宽度;
//            var iHeight; //弹出窗口的高度;
//            var iTop = (window.screen.availHeight - 30 - iHeight) / 2; //获得窗口的垂直位置;
//            var iLeft = (window.screen.availWidth - 10 - iWidth) / 2; //获得窗口的水平位置;
//            window.open(url, name, 'height=' + iHeight + ',,innerHeight=' + iHeight + ',width=' + iWidth + ',innerWidth=' + iWidth + ',top=' + iTop + ',left=' + iLeft + ',toolbar=no,menubar=no,scrollbars=auto,resizeable=no,location=no,status=no');
//        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table style="height: 22px" width="100%">
            <tr>
                <td colspan="2">
                    <strong>基本信息区 </strong>
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    <strong>计划号: </strong>
                </td>
                <td>
                    <dx:ASPxLabel ID="lblTourGroupID" runat="server">
                    </dx:ASPxLabel>
                </td>
                <td>
                    <strong>状态: </strong>
                </td>
                <td>
                    <dx:ASPxLabel ID="lblTourGroupState" runat="server">
                    </dx:ASPxLabel>
                </td>
            </tr>
            <tr>
                <td>
                    国家:
                </td>
                <td>
                    <dx:ASPxLabel ID="tbCountry" runat="server">
                    </dx:ASPxLabel>
                    <dx:ASPxLabel ID="lblCountryCode" runat="server">
                    </dx:ASPxLabel>
                </td>
                <td>
                    日期:
                </td>
                <td>
                    <dx:ASPxLabel ID="tbStartDate" runat="server">
                    </dx:ASPxLabel>
                </td>
                <td>
                    至:
                </td>
                <td>
                    <dx:ASPxLabel ID="tbEndDate" runat="server">
                    </dx:ASPxLabel>
                </td>
                <td>
                    过夜:
                </td>
                <td>
                    <dx:ASPxLabel ID="tbNightNum" runat="server">
                    </dx:ASPxLabel>
                </td>
                <td>
                    成人:
                </td>
                <td>
                    <dx:ASPxLabel ID="tbAdultNum" runat="server">
                    </dx:ASPxLabel>
                </td>
                <td>
                    儿童:
                </td>
                <td>
                    <dx:ASPxLabel ID="tbChildNum" runat="server">
                    </dx:ASPxLabel>
                </td>
            </tr>
            <tr>
                <td>
                    团名:
                </td>
                <td>
                    <dx:ASPxLabel ID="tbTourgroupName" runat="server">
                    </dx:ASPxLabel>
                </td>
                <td>
                    客人:
                </td>
                <td>
                    <dx:ASPxLabel ID="cbGuesttype" runat="server">
                    </dx:ASPxLabel>
                </td>
                <td>
                    服务:
                </td>
                <td>
                    <dx:ASPxLabel ID="cbServicetype" runat="server">
                    </dx:ASPxLabel>
                </td>
                <td>
                    团队:
                </td>
                <td>
                    <dx:ASPxLabel ID="cbTourgrouptype" runat="server">
                    </dx:ASPxLabel>
                </td>
                <td>
                    全陪:
                </td>
                <td>
                    <dx:ASPxLabel ID="tbAccompanyNum" runat="server">
                    </dx:ASPxLabel>
                </td>
                <td>
                    按需陪同:
                </td>
                <td>
                    <dx:ASPxCheckBox ID="ckHasGuide" runat="server" CheckState="Unchecked" 
                        ReadOnly="True">
                    </dx:ASPxCheckBox>
                </td>
            </tr>
            <tr>
                <td>
                    客户:
                </td>
                <td>
                    <dx:ASPxLabel ID="tbCustomerCode" runat="server">
                    </dx:ASPxLabel>
                </td>
                <td colspan="2">
                    &nbsp;<dx:ASPxLabel ID="lblCustomerName" runat="server">
                    </dx:ASPxLabel>
                </td>
                <td>
                    &nbsp;</td>
                <td>
                    组团人:
                </td>
                <td>
                    <dx:ASPxLabel ID="cbOwnerA" runat="server">
                    </dx:ASPxLabel>
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    <dx:ASPxLabel ID="cbOwnerB" runat="server">
                    </dx:ASPxLabel>
                </td>
                <td>
                    组团日期：
                </td>
                <td>
                    <dx:ASPxLabel ID="tbBuildGroupDate" runat="server">
                    </dx:ASPxLabel>
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td colspan="12">
                    <dx:ASPxMemo ID="mbRemark" runat="server" Height="75px" Width="100%">
                    </dx:ASPxMemo>
                </td>
            </tr>
        </table>
        <%--<dx:ASPxSplitter ID="ASPxSplitter1" Width="100%" Height="100%" runat="server" Orientation="Vertical"
            ShowCollapseBackwardButton="True" ShowCollapseForwardButton="True" FullscreenMode="True">
            <Panes>
                               <dx:SplitterPane Size="40%">
                    <ContentCollection>
                        <dx:SplitterContentControl runat="server" SupportsDisabledAttribute="True">

                        </dx:SplitterContentControl>
                    </ContentCollection>
                </dx:SplitterPane>
                
                <dx:SplitterPane ScrollBars="Vertical" Size="400px">
                    <ContentCollection>
                        <dx:SplitterContentControl runat="server" SupportsDisabledAttribute="True">
                        </dx:SplitterContentControl>
                    </ContentCollection>
                </dx:SplitterPane>
                <dx:SplitterPane Size="10%">
                    <ContentCollection>
                        <dx:SplitterContentControl>
                        </dx:SplitterContentControl>
                    </ContentCollection>
                </dx:SplitterPane>
            </Panes>
        </dx:ASPxSplitter>--%>
        <table align="center" width="100%">
            <tr>
                </td><td colspan="3">
                    <dx:ASPxGridView ID="ScheduleGridView" runat="server" AutoGenerateColumns="False"
                        Caption="行程计划信息" Width="100%">
                        <Columns>
                            <dx:GridViewDataTextColumn Caption="TourGroupScheduleID" FieldName="TourGroupScheduleID"
                                ShowInCustomizationForm="True" VisibleIndex="0" Visible="False">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="TourgroupID" FieldName="TourgroupID" ShowInCustomizationForm="True"
                                VisibleIndex="1" Visible="False">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="日期" FieldName="Date" ShowInCustomizationForm="True"
                                VisibleIndex="2" SortIndex="0" SortOrder="Ascending" Width="75px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="时间" FieldName="Time" ShowInCustomizationForm="True"
                                VisibleIndex="3" Width="65px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="过夜" FieldName="StayOver" ShowInCustomizationForm="True"
                                VisibleIndex="4" Width="35px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="日程类型" FieldName="Journeytype" ShowInCustomizationForm="True"
                                VisibleIndex="5" Width="50px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="所在地" FieldName="StartCity" ShowInCustomizationForm="True"
                                VisibleIndex="6" Width="50px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="目的地" FieldName="DestinationCity" ShowInCustomizationForm="True"
                                VisibleIndex="7" Width="50px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="交通工具" FieldName="TrafficType" ShowInCustomizationForm="True"
                                VisibleIndex="8" Width="65px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="车次" FieldName="Traffic" ShowInCustomizationForm="True"
                                VisibleIndex="9" Width="45px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="TravelAgencyID" ShowInCustomizationForm="True"
                                VisibleIndex="20" Visible="False">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="旅行社" FieldName="TravelAgencyName" ShowInCustomizationForm="True"
                                VisibleIndex="10" Width="75px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="接待人" FieldName="Reception" ShowInCustomizationForm="True"
                                VisibleIndex="11" Width="55px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="订票" FieldName="TicketType" ShowInCustomizationForm="True"
                                VisibleIndex="12" Width="45px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="内容" FieldName="Context" ShowInCustomizationForm="True"
                                VisibleIndex="13" Width="200px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="用餐" FieldName="Dining" ShowInCustomizationForm="True"
                                VisibleIndex="14" Width="55px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="宾馆" FieldName="Hotel" ShowInCustomizationForm="True"
                                VisibleIndex="15" Width="65px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn FieldName="HotelID" ShowInCustomizationForm="True" Visible="False"
                                VisibleIndex="19">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="席位" FieldName="Seat" ShowInCustomizationForm="True"
                                VisibleIndex="16" Width="65px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="预订方式" FieldName="ScheduleMethod" ShowInCustomizationForm="True"
                                VisibleIndex="17" Width="65px">
                            </dx:GridViewDataTextColumn>
                        </Columns>
                        <SettingsPager Visible="False" Mode="ShowAllRecords">
                        </SettingsPager>
                        <Settings ShowHorizontalScrollBar="True" ShowVerticalScrollBar="True" VerticalScrollableHeight="400" />
                    </dx:ASPxGridView>
                </td>
            </tr>
            <tr>
                <td align="right" >
                    <dx:ASPxButton ID="btnGuest" runat="server" Text="客人信息" OnClick="btnGuest_Click">
                    </dx:ASPxButton>
                    </td>
                <td width="70px">
                    <dx:ASPxButton ID="btnGuide" runat="server" Text="导游信息" OnClick="btnGuide_Click">
                    </dx:ASPxButton>
                </td>
                <td align="left" >
                    <dx:ASPxButton ID="btnNotify" runat="server" Text="通知信息" OnClick="btnNotify_Click">
                    </dx:ASPxButton>
                </td>
            </tr>
        </table>
    </div>
    <p>
        <dx:ASPxPopupControl ID="ASPxPopupControl1" runat="server" AllowDragging="True" ClientInstanceName="popGuest"
            Height="500px" PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter"
            Width="900px" AllowResize="True" DragElement="Window" Modal="True" CloseAction="CloseButton">
            <ContentCollection>
                <dx:PopupControlContentControl ID="PopupControlContentControl3" runat="server" SupportsDisabledAttribute="True">
                    <dx:ASPxGridView ID="guestListGridView" runat="server" AutoGenerateColumns="False"
                        Width="100%">
                        <Columns>
                            <dx:GridViewDataTextColumn Caption="排序" FieldName="OrderID" ShowInCustomizationForm="True"
                                SortIndex="0" SortOrder="Ascending" VisibleIndex="0" Width="52px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="VIP" FieldName="IsVIP" ShowInCustomizationForm="True"
                                VisibleIndex="1" Width="35px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="取消" FieldName="IsCancel" ShowInCustomizationForm="True"
                                VisibleIndex="2" Width="40px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="姓名" FieldName="Name" ShowInCustomizationForm="True"
                                VisibleIndex="3" Width="70px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="性别" FieldName="Gender" ShowInCustomizationForm="True"
                                VisibleIndex="4" Width="45px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="国家" FieldName="Nationality" ShowInCustomizationForm="True"
                                VisibleIndex="5" Width="71px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="证件号码" FieldName="IdCard" ShowInCustomizationForm="True"
                                VisibleIndex="6" Width="72px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="生日" FieldName="Birthday" ShowInCustomizationForm="True"
                                VisibleIndex="7" Width="65px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="备注" FieldName="Remark" ShowInCustomizationForm="True"
                                VisibleIndex="8" Width="77px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="房间标准" FieldName="Room" ShowInCustomizationForm="True"
                                VisibleIndex="9" Width="66px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="护照有效期" FieldName="PassportPeriod" ShowInCustomizationForm="True"
                                VisibleIndex="10" Width="77px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="护照签发地" FieldName="PassportAddress" ShowInCustomizationForm="True"
                                VisibleIndex="11" Width="80px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="签证有效期" FieldName="VisaPeriod" ShowInCustomizationForm="True"
                                VisibleIndex="12" Width="126px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="职业" FieldName="Job" ShowInCustomizationForm="True"
                                VisibleIndex="13" Width="68px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="订票" FieldName="IsTickets" ShowInCustomizationForm="True"
                                VisibleIndex="14" Width="38px">
                            </dx:GridViewDataTextColumn>
                        </Columns>
                        <Settings ShowHorizontalScrollBar="True" ShowVerticalScrollBar="false" />
                    </dx:ASPxGridView>
                </dx:PopupControlContentControl>
            </ContentCollection>
        </dx:ASPxPopupControl>
    </p>
    <p>
        <dx:ASPxPopupControl ID="ASPxPopupControl2" runat="server" AllowDragging="True" ClientInstanceName="popGuide"
            Height="200px" PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter"
            Width="900px" AllowResize="True" DragElement="Window" Modal="True" CloseAction="CloseButton">
            <ContentCollection>
                <dx:PopupControlContentControl ID="PopupControlContentControl1" runat="server" SupportsDisabledAttribute="True">
                    <dx:ASPxGridView ID="guideListGridView" runat="server" 
                        AutoGenerateColumns="False" Width="100%">
                        <Columns>
                            <dx:GridViewDataTextColumn Caption="导游" FieldName="CiceroniName" ShowInCustomizationForm="True"
                                VisibleIndex="0" Width="80px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="计划号" FieldName="TourgroupID" ShowInCustomizationForm="True"
                                VisibleIndex="1" Width="82px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="起始日期" FieldName="StartDate" ShowInCustomizationForm="True"
                                VisibleIndex="2" Width="153px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="结束日期" FieldName="EndDate" ShowInCustomizationForm="True"
                                VisibleIndex="3" Width="135px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="电话" FieldName="Phone" ShowInCustomizationForm="True"
                                VisibleIndex="4" Width="83px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="已通知" FieldName="Notified" ShowInCustomizationForm="True"
                                VisibleIndex="5" Width="47px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="说明" FieldName="Remark" ShowInCustomizationForm="True"
                                VisibleIndex="6" Width="215px">
                            </dx:GridViewDataTextColumn>
                        </Columns>
                        <Settings ShowHorizontalScrollBar="True" ShowVerticalScrollBar="false" />
                    </dx:ASPxGridView>
                </dx:PopupControlContentControl>
            </ContentCollection>
        </dx:ASPxPopupControl>
    </p>
    <p>
        <dx:ASPxPopupControl ID="ASPxPopupControl3" runat="server" AllowDragging="True" ClientInstanceName="popNotify"
            Height="200px" PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter"
            Width="900px" AllowResize="True" DragElement="Window" Modal="True" CloseAction="CloseButton">
            <ContentCollection>
                <dx:PopupControlContentControl ID="PopupControlContentControl2" runat="server" SupportsDisabledAttribute="True">
                    <dx:ASPxGridView ID="changeNotifyGridView" runat="server" AutoGenerateColumns="False"
                        Width="100%">
                        <Columns>
                            <dx:GridViewDataTextColumn Caption="计次" FieldName="Number" ShowInCustomizationForm="True"
                                VisibleIndex="0" Width="54px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="变更时间" FieldName="ChangeTime" ShowInCustomizationForm="True"
                                VisibleIndex="1" Width="155px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="标题" FieldName="Title" ShowInCustomizationForm="True"
                                VisibleIndex="2" Width="135px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="内容" FieldName="Context" ShowInCustomizationForm="True"
                                VisibleIndex="3" Width="416px">
                            </dx:GridViewDataTextColumn>
                        </Columns>
                        <Settings ShowHorizontalScrollBar="True" ShowVerticalScrollBar="false" />
                    </dx:ASPxGridView>
                </dx:PopupControlContentControl>
            </ContentCollection>
        </dx:ASPxPopupControl>
    </p>
    </form>
</body>
</html>
